import axiosServer from '../utils/request'

//批量上传作品接口
export const uploadList = (formData) => {
  return axiosServer({
    method: 'post',
    url: '/api/upimg/file_upload',
    data: formData,
  })
}
//上传作品
export const uploadWordk = (
  userID,
  UploadContent,
  title,
  notes,
  classification
) => {
  return axiosServer({
    method: 'post',
    url: '/api/upimg/uploadworks',
    data: { userID, UploadContent, title, notes, classification },
  })
}
//获取分类列表
export const GetuploadList = (classification) => {
  return axiosServer({
    method: 'get',
    url: '/api/upimg/allclasslist',
    params: { classification },
  })
}
//用户自身获取作品列表
export const yonghuzuopinlist = (userID) => {
  return axiosServer({
    method: 'get',
    url: '/api/upimg/useruploadlist',
    params: { userID },
  })
}
//获取作品及用户信息
export const GetWorksAndUsers = (_id,userID) => {
  return axiosServer({
    method: 'get',
    url: '/api/upimg/zuopinxiangqing',
    params: { _id,userID },
  })
}
//获取作品及用户信息
export const deletezuopin = (_id) => {
  return axiosServer({
    method: 'get',
    url: '/api/upimg/delete',
    params: { _id },
  })
}

